package cn.thinkluck.pattern.decorator;

/**
 * @Author liutao
 * @DateTime 2024/7/21 下午1:32
 */
public class Main {
    public static void main(String[] args) {
        //原始对象
        Component component = new ComponentImpl();
        //第一次包装
        component = new ComponentDecorator1(component);
        //第二次包装
        component = new ComponentDecorator2(component);
        component.operation();
    }
}
